﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dictionary<string,List<SessionDetail>>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Track
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		<a href='/Session/Track/'>Tracks</a></h2>
	<%
		foreach (string trackName in Model.Keys.Distinct())
		{
	%>
	<a href='/Session/Track/<%=Server.UrlEncode(trackName) %>'>
		<%= Html.Encode(trackName) %></a>
	<ul>
		<%
			foreach (var session in Model[trackName])
			{
		%>
		<li>
			<%= session.Session.Name%></li>
		<%
			}
		%>
	</ul>
	<%
		}
	%>
</asp:Content>
